<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>豆瓣广播</title>
<link rel="StyleSheet" href="/douban/css/douban.css" type="text/css" media="all" />
<script type="text/javascript" language="javascript">
function init() {
    var interval = 5 * 60 * 1000;
    setTimeout("refresh()",interval);
}

function refresh() {
    location.href = "/douban/miniblog/contact";
}
</script>
<style type="text/css">

</style>
</head>
<body onload="init()">
    <div id="header">
        <div id="left-header">
            <a href="http://www.douban.com/" target="_blank"><img src="/douban/images/douban3.gif" title="douban" alt="douban's icon" /></a>
        </div>
        <div id="right-header">
            <span id="username">{{ username }}</span>&nbsp;&nbsp;
            <a class="funcButton" href="/douban/miniblog/contact">刷新</a>&nbsp;
            <a class="funcButton" href="/douban">退出</a>
        </div>
    </div>
    <div id="broadcast">
    {% for entry in entryList %}
        <div class="entry">
            <img class="icon" src="{{ entry.author_icon }}" alt="{{ entry.author_name }}'s icon" title="{{ entry.author_name }}" />
            {{ entry.author_name }}：{{ entry.content }}
        </div>
        <div class="clear dotted-underline"></div>
    {% endfor %}
    {% if err %}
        <div id="errprompt"><span class="errtext">oops！！请过会儿再</span><a class="funcButton" href="/douban/miniblog/contact?crtpage={{ crtPage }}">连我</a><span class="errtext">！！</span></div>
    {% else %}
        <div id="pageDiv">
        {% if prePage %}
            <a class="funcButton" href="/douban/miniblog/contact?crtpage={{ prePage }}">上一页</a>    
        {% endif %}
            <a class="funcButton" href="/douban/miniblog/contact?crtpage={{ nextPage }}">下一页</a>
        </div>        
        <div class="clear"></div>
    {% endif %}        
    </div>
</body>
</html>
